<?php
require_once 'admin-header.php';
if ($session::get('uid')) {
    ?>
    <script>
        alert("您已登录");
        window.location.href = "./index.php";
    </script>
    <?php
}
?>

    <body data-type="login">
    <script src="assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        <div class="tpl-login">
            <div class="tpl-login-content">
                <div class="tpl-login-title">注册用户</div>
                <span class="tpl-login-content-info">
                  创建一个新的用户
              </span>


                <form class="am-form tpl-form-line-form" method="post" onsubmit="return false;">
                    <div class="am-form-group">
                        <input type="email" class="tpl-form-input" id="user-email" placeholder="邮箱">

                    </div>

                    <div class="am-form-group">
                        <input type="text" class="tpl-form-input" id="user-name" placeholder="用户名">
                    </div>

                    <div class="am-form-group">
                        <input type="password" class="tpl-form-input password-safe" id="user-password" placeholder="请输入密码">
                    </div>

                    <div class="am-progress-title">密码安全系数：<span class="am-fr am-progress-title-more">无</span></div>

                    <div class="am-progress">
                        <div class="am-progress-bar am-progress-bar-danger" style="width: 0%"></div>
                    </div>

                    <div class="am-form-group">
                        <input type="password" class="tpl-form-input" id="user-password-again" placeholder="再次输入密码">
                    </div>

                    <div class="am-form-group tpl-login-remember-me">
                        <input id="remember-me" type="checkbox">
                        <label for="remember-me">
                            我已阅读并同意 <a href="javascript:;">《用户注册协议》</a>
                        </label>
                    </div>

                    <div class="am-form-group">
                        <button type="submit"
                                class="am-btn am-btn-primary am-btn-block tpl-btn-bg-color-success tpl-login-btn btn-sign-up">
                            提交
                        </button>
                    </div>

                    <div>
                        <label>
                            已有账号，<a href="login.php">登录</a>
                        </label>
                    </div>


                </form>
            </div>
        </div>
    </div>

    </body>

<?php
require_once 'admin-footer.php';